import { request } from '@/utils/request'
// 获取项目列表请求
export function getProjectList(params) {
  return request({
    url: '/api/project/list',
    method: 'get',
    params
  })
}
// 添加项目保存
export function saveAddProject(data) {
  return request({
    url: '/api/project/save',
    method: 'post',
    data
  })
}
// 删除项目

export function delProject(data) {
  return request({
    url: '/api/project/del',
    method: 'post',
    data
  })
}

// 获取区域列表树形

export function getAreaList(params) {
  return request({
    url: '/api/project/area/list',
    method: 'get',
    params
  })
}
// 获取区域设备绑定列表

export function getAreaBindList(params) {
  return request({
    url: '/api/project/area/device/list',
    method: 'get',
    params
  })
}
